package com.zcxy.fast.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zcxy.fast.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 分类字典
 *
 * @author zcc
 * @email  860474958@qq.com
 * @date   2020-12-25 17:39:33
 */
@Data
@TableName(value ="sys_category",autoResultMap = true)
@ApiModel(value = "SysCategory", description = "分类字典")
public class SysCategory extends BaseEntity {

    @TableId(type = IdType.UUID)
    @Length(max = 50, message = "id 超出最大长度：50")
    @ApiModelProperty(value = " 主键", required = false)
    private String id ;

    @Length(max = 50, message = "code 超出最大长度：50")
    @ApiModelProperty(value = " 编码", required = false)
    private String code ;

    @Length(max = 50, message = "name 超出最大长度：50")
    @ApiModelProperty(value = " 分类名称", required = false)
    private String name ;

    @Length(max = 50, message = "parentId 超出最大长度：50")
    @ApiModelProperty(value = " ", required = false)
    private String parentId ;



}
